#ifndef FRIENDANDSESSIONLISTCONTROL_H
#define FRIENDANDSESSIONLISTCONTROL_H
/**
 * @brief 列表控制器模块
 *
 */
#include <QObject>
#include "Control/MessageManager.h"
namespace IM_GUI_KIT {
    class FriendAndSessionListControl:public QObject
    {
        Q_OBJECT

    public:
        void deleteFriend(QString friendid,int type);
        void deleteSession(QString sessionid,int type);
        // 创建会话
        void createSession(QString sessionid,int type);
        FriendAndSessionListControl();
        ~FriendAndSessionListControl();
        // 好友
        QList<QObject*> getFriendList();
        QList<QObject*> *getFriendListPort();
        // 会话
        QList<QObject*> getSessionList();
        QList<QObject*> *getSessionListPort();
        QMap<QString, MessageManager*> *getMessageMapPort();

    private:
        QList<QObject*> *myFriendLists;
        QList<QObject*> *mySessionLists;
        QMap<QString,MessageManager*> *messageMap;

    };
}
#endif // FRIENDANDSESSIONLISTCONTROL_H
